package cn.wen.yinxiu.works.service.impl;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;
import java.util.Map;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import cn.wen.yinxiu.common.toolkit.PageUtils;
import cn.wen.yinxiu.common.toolkit.Query;

import cn.wen.yinxiu.works.dao.WorksTypeRelationDao;
import cn.wen.yinxiu.works.entity.WorksTypeRelationEntity;
import cn.wen.yinxiu.works.service.WorksTypeRelationService;

@Component
@Service("worksTypeRelationService")
public class WorksTypeRelationServiceImpl extends ServiceImpl<WorksTypeRelationDao, WorksTypeRelationEntity> implements WorksTypeRelationService {

    @Override
    public PageUtils queryPage(Map<String, Object> params) {
        IPage<WorksTypeRelationEntity> page = this.page(
                new Query<WorksTypeRelationEntity>().getPage(params),
                new QueryWrapper<WorksTypeRelationEntity>()
        );

        return new PageUtils(page);
    }

}